from matplotlib import pyplot as plt
from matplotlib import font_manager
import random

y_3=[random.randint(10,30) for i in range(32)]
y_10=[random.randint(11,31) for i in range(32)]

x_3=range(0,32)
x_10=range(32,64)
x=list(x_3)+list(x_10)
plt.xticks(x[::3])

plt.scatter(x_3,y_3)        #绘制散点图
plt.scatter(x_10,y_10)

plt.show()